package com.java_base.loop;

public class WhileDemo02 {
    public static void main(String[] args) {
        // 纸张折叠与珠穆朗玛峰高度问题
        double x = 0.1;
        double y = 8848860;
        int count = 0;
        while (x < y){
            x *= 2;
            count++;
        }
        System.out.println(x);
        System.out.println(count);
    }
}
